package com.yt.sys.models.dto;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import com.yt.common.dto.BaseDTO;

/**
 * 登录信息DTO
 *
 * @author yzz
 * @Date 2025-10-22 09:46:30
 */
@Data
@TableName("login_info")
@ApiModel(value="登录信息对象", description="登录信息对象")
public class LoginInfoDTO extends BaseDTO implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "登录记录ID（主键）")
    private Long id;
    
    @ApiModelProperty(value = "登录账号（唯一）")
    private String account;
    @ApiModelProperty(value = "登录密码（加密存储，如SHA256）")
    private String password;
    @ApiModelProperty(value = "关联员工ID（外键，关联employee_info表，员工登录时使用）")
    @TableField("employee_id")
    private String employeeId;
    @ApiModelProperty(value = "关联客户ID（外键，关联customer_info表，客户登录时使用）")
    @TableField("cus_id")
    private String cusId;
    
    /**
     * 排除父类中的revision字段映射，因为login_info表中无此字段
     */
    @TableField(exist = false)
    private Integer revision;
}